import "package:intl/intl.dart";

class FormatUtils {
  static final moneyFormat = NumberFormat("#,##0.00", "en_US");

  static String formatMoney(double? money, {String unit = "", bool showMoney = true}) {
    if (money == null) {
      return "" + unit;
    }
    return showMoney ? moneyFormat.format(money) + unit : "* * * * * *";
  }
}
